package org.lq.shopping.entity;
import java.io.Serializable;
import java.sql.Date;
/**
 * 管理员实体类
 * @author 天马行空
 * @time 2018年9月26日
 * EShop
 */
public class ShopManager implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6551910991133735554L;
	private String mname;//管理员姓名
	private String mpassword;//管理员密码
	private Date mregtime;//注册时间
	private String memail;//管理员邮箱
	private int mid;//管理员ID
	
	
	public String getMname() {
		return mname;
	}
	public void setMname(String mname) {
		this.mname = mname;
	}
	public String getMpassword() {
		return mpassword;
	}
	public void setMpassword(String mpassword) {
		this.mpassword = mpassword;
	}
	public Date getMregtime() {
		return mregtime;
	}
	public void setMregtime(Date mregtime) {
		this.mregtime = mregtime;
	}
	public String getMemail() {
		return memail;
	}
	public void setMemail(String memail) {
		this.memail = memail;
	}
	public int getMid() {
		return mid;
	}
	public void setMid(int mid) {
		this.mid = mid;
	}
	
	@Override
	public String toString() {
		return "ShopManager [mname=" + mname + ", mpassword=" + mpassword + ", mregtime=" + mregtime + ", memail="
				+ memail + ", mid=" + mid + ", getMname()=" + getMname() + ", getMpassword()=" + getMpassword()
				+ ", getMregtime()=" + getMregtime() + ", getMemail()=" + getMemail() + ", getMid()=" + getMid()
				+ ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString()
				+ "]";
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((memail == null) ? 0 : memail.hashCode());
		result = prime * result + mid;
		result = prime * result + ((mname == null) ? 0 : mname.hashCode());
		result = prime * result + ((mpassword == null) ? 0 : mpassword.hashCode());
		result = prime * result + ((mregtime == null) ? 0 : mregtime.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ShopManager other = (ShopManager) obj;
		if (memail == null) {
			if (other.memail != null)
				return false;
		} else if (!memail.equals(other.memail))
			return false;
		if (mid != other.mid)
			return false;
		if (mname == null) {
			if (other.mname != null)
				return false;
		} else if (!mname.equals(other.mname))
			return false;
		if (mpassword == null) {
			if (other.mpassword != null)
				return false;
		} else if (!mpassword.equals(other.mpassword))
			return false;
		if (mregtime == null) {
			if (other.mregtime != null)
				return false;
		} else if (!mregtime.equals(other.mregtime))
			return false;
		return true;
	}
	/**
	 * @param mname
	 * @param mpassword
	 * @param mregtime
	 * @param memail
	 * @param mid
	 */
	public ShopManager(String mname, String mpassword, Date mregtime, String memail, int mid) {
		super();
		this.mname = mname;
		this.mpassword = mpassword;
		this.mregtime = mregtime;
		this.memail = memail;
		this.mid = mid;
	}
	/**
	 * 
	 */
	public ShopManager() {
		super();
	}
	
	
	
}
